About the Demo
This demo shows one way to plug into the ECO architecture. It makes use of the
IPersistenceHandler interface to intercept when fetching objects and attributes one at a time. When an object is loaded, a message
is written to a log.
Setup Information
This demo uses DEMO.IB in the directory of the demo for persistence.
Running the Demo
- Start the IDE
- Open the LazyFetchAlert.bdsproj
- Compile and run
- Click Create Schema, then Activate
- Click Open normal form, and add a couple of objects. Close the form again.
- Click Update DB
- Click Deactivate, then Activate
- Click either Open normal form or Open optimized form. Observe the difference in the Log. You need to deactivate and activate in between to force the ecospace to fetch the objects.